package com.lagou.work.zookeeper.registry;

import java.util.List;

public interface RpcRegistryHandler {

    /**
     * 注册
     * @param service
     * @param ip
     * @param port
     * @return
     */
    boolean registry(String service, String ip, Integer port);

    /**
     * 服务发现
     * @param service
     * @return
     */
    List<String> discovery(String service);

}
